package com.wyh.lotterysystem.service;

import com.wyh.lotterysystem.controller.request.DrawPrizeRequest;
import com.wyh.lotterysystem.controller.request.WinningRecordsRequest;
import com.wyh.lotterysystem.service.dto.WinningRecordsDTO;

import java.util.List;

public interface DrawPrizeService {
    /**
     * 异步抽奖
     * @param request
     */
    void drawPrize(DrawPrizeRequest request);

    /**
     * 检验抽奖信息
     * @param request
     * @return
     */
    boolean checkDrawPrizeRequest(DrawPrizeRequest request);

    /**
     * 获取中奖记录
     * @param request
     * @return
     */
    List<WinningRecordsDTO> showRecords(WinningRecordsRequest request);
}
